<!DOCTYPE html>
<!-- saved from url=(0076)http://www.uphsh.com/wap/ef73d9dc381d412f964b99e521c270a6/invoice?userToken= -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<base href="http://www.uphsh.com:80/">--><base href=".">


<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no" name="format-detection">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>极速开票</title>
<link type="text/css" href="../../resource/yst_files/wap_common.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="../../resource/yst_files/fapiao.css">
<script src="../../resource/yst_files/jquery-1.8.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../../resource/yst_files/wap_common.js"></script>
<script src="../../resource/qrcode.js"></script>


<link rel="stylesheet" href="../../resource/ystfiles/weuimin.css">
<link rel="stylesheet" href="../../resource/ystfiles/example.css">
<script type="text/javascript" src="../../resource/ystfiles/api.js"></script>
<script type="text/javascript" src="../../resource/ystfiles/jweixin1002.js"></script>
<script type="text/javascript" src="../../resource/ystfiles/jweixin1.js"></script>
<script src="../../resource/jquery1.js"></script>
<script src="../../resource/qrcode.js"></script>
<script src="../../resource/jquerybarcode.js"></script>
<script src="../../script/api.js"></script>
<script src="../../resource/ystfiles/qrcode.js"></script>
<script src="../../resource/ystfiles/jquery-barcode.js"></script>
<script type="text/javascript" src="../../script/constants.js"></script>
<style>
a.btn {
    width: 60px;
    line-height: 25px;
    display: block;
    text-align: center;
    font-size: 12px;
    background: rgba(51,51,51,0.3);
    color: #fff;
    border-radius: 5px;
}
</style>
</head>

<body>
	<div class="header">
        <div class="return">
        	<img src="../../image/back.png" style="left:0" onclick="toindex()" />
        </div>
        <div class="menu" style="display: none">
        	<a href="javaScript:;"></a>
        	<ul class="items" style="display: none;">
		    	<li data-href="plugin/helpCenter/find?id=47">帮助中心</li>
		    	<li data-href="wap/orders/ef73d9dc381d412f964b99e521c270a6">我的订单</li>
		    	<li data-href="userCenter/ef73d9dc381d412f964b99e521c270a6/wap/userInfo">我的账户</li>
		    </ul>
        </div>
        <div class="tittle">
    		极速开票
        </div>
    </div>
    <div id="contant" style="height: 563px;">

		<div class="ico_pass clearfix"> <!-- onclick="fplist()" -->
			<div class="fl" style="padding-left:3%; padding-top:12px; width:10%">
		        <img src="../../resource/yst_files/fp.png" width="18" height="16">
		    </div>
			<p class="fr p2" onclick="">我的发票列表</p>
		</div>


		<!-- 加载动画 -->
	<div id="loadingToast" style="display:none;">
			<div class="weui-mask_transparent"></div>
			<div class="weui-toast">
				<i class="weui-loading weui-icon_toast"></i>
				<p class="weui-toast__content">数据加载中...</p>
			</div>
		</div>


		<div id="FP_boxs">

	</div>
	<div style="width: 90%;display: none" class="FP_btn" id="mskp" onclick="toindex()">
			<a style="display: inline-block;display: -moz-inline-stack;width: 100%;color: #888;" ><strong style="font-size: 20px;"></strong>&nbsp;暂无电子发票</a>
		</div>

		<div style="text-align: center;bottom: 5px;font-size: 12px;margin-top: 30px"  >四川航天金穗高技术有限公司<br>客户热线：<a href="tel:95113" style="color: gray;">95113</a></div>



		<!--<img src="../../resource/yst_files/wapstat.php" width="0" height="0" alt="">-->
	</div>



	<script type="text/javascript">

	apiready = function(){
	
		    $("#loadingToast").show();
        var dl_phone = $api.getStorage("dl_phone");
        
			api.ajax({
    			//url: 'http://wechat.scjinsui.com/weixin/wxUser/gridUserInfo2.do',
    			//url: 'http://192.168.76.49:8080/app/myfp.do',
    			//url: url.myfp,
    			url: url.myfp,
    			method: 'post',
    			data: {
     			   values: {
     			       dl_phone: dl_phone
     			   }
    			}
			}, function(ret, err) {
			  
 		if (ret.flag=="Y") {
    			    xlist=ret.xlist;
	        	for(var i=0;i<xlist.length;i++){

					var LSH = ret.xlist[i].LSH;
					var time = getLocalTime(xlist[i].INTIME)
					  var s = "";

					     s += "<div class=\"FP_box clearfix\" style=\"background: #27a8fa;\">"
					         +"<div onclick='showDetail(\""+xlist[i].lsh+"\",1)'  class=\"fl\" style=\"width: 70%;padding-bottom:18px;\">";

					    s += "<h6><a style=\"color:#fff \">&nbsp;发票代码："+ xlist[i].fpdm+"</a></h6>"+
	    					"</div>"+
	    					"<div class=\"fr\" style=\"margin-top:5px;float:right;font-family: 微软雅黑;\"> ";
 						s +=
							"</div><div class=\"FP_box_hint\">&nbsp;发票号码:"+xlist[i].fphm+"</div></div></div>"
					$("#FP_boxs").append(s);

	        	}
	        	$("#loadingToast").hide();
   			 } else if(ret.flag=="D"){
   			    $("#loadingToast").hide();
				$("#mskp").show();
   			 }else{
   			    $("#loadingToast").hide();
				api.alert({msg:'网络异常'});
   			 }
			});
		}



	</script>
	<script>

	function getLocalTime(jsondate) {
			jsondate=""+jsondate+"";//因为jsonDate是number型的indexOf会报错
			if (jsondate.indexOf("+") > 0) {
                jsondate = jsondate.substring(0, jsondate.indexOf("+"));
            }
            else if (jsondate.indexOf("-") > 0) {
                jsondate = jsondate.substring(0, jsondate.indexOf("-"));
            }
            var date = new Date(parseInt(jsondate, 10));
            var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
            var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
            var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
            var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
            var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
            return date.getFullYear() + "-" + month + "-" + currentDate + " " + hours + ":" + minutes + ":" + seconds;
}

	function toindex(){
        api.closeWin();
	}

	function showDetail(LSH){
		var s = api.connectionType;
	    s = s.toLowerCase();
	    if (s == 'wifi' || s == '3g' || s == '4g' || s == '2g') {
		api.openWin({
	        name: '发票编辑',
	        url: '../jskp/Invoice_fpxx.html',
	        pageParam:{
				LSH : LSH
	        }
        });
			} else {
		$api.toast('提示', '网络异常', 2000);
		 }
	}


</script>



</body></html>
